SRCS = $(wildcard *.c)
OBJS = $(patsubst %.c, %.o, $(SRCS))

CC = gcc

TARGET = client

$(TARGET):$(OBJS)
	$(CC) $(OBJS) -o $(TARGET) -lpthread

%.o : %.c 
	$(CC) -c $(^) -o $(@) 

clean:
	rm -rf *.o $(TARGET)